package edu.sfsu.powerrangers.jeopardy.gamestate;

import java.io.Serializable;

public class Clue implements Cloneable, Serializable {
	private static final long serialVersionUID = 1L;
	
	private int value;
	private boolean isDouble;
	private String clue;
	private String response;
	private boolean doubleRevealed;
	private boolean clueRevealed;
	private boolean respondedTo;
	
	public Clue(int value, boolean isDouble, String clue, String response) {
		this.value = value;
		this.isDouble = isDouble;
		this.clue = clue;
		this.response = response;
		this.doubleRevealed = false;
		this.clueRevealed = false;
		this.respondedTo = false;
	}
	
	public Clue clone() {
		return new Clue(value, isDouble, clue, response);
	}
	
	public int getValue() {
		return value;
	}
	
	public boolean isDouble() {
		return isDouble;
	}
	
	public String getClue() {
		return clue;
	}
	
	public String getResponse() {
		return response;
	}
	
	public boolean isDoubleRevealed() {
		return doubleRevealed;
	}
	
	public void revealDouble() {
		doubleRevealed = true;
	}
	
	public boolean isClueRevealed() {
		return clueRevealed;
	}
	
	public void revealClue() {
		clueRevealed = true;
	}
	
	public boolean isRespondedTo() {
		return respondedTo;
	}
	
	public void respondTo() {
		respondedTo = true;
	}
}
